package vip.youngboy.freejump.persist.bpmext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import vip.youngboy.freejump.domain.process.BpmDefExt;
import vip.youngboy.freejump.repository.BpmDefExtRepository;

@Component
public class DefaultBpmExtPersistence implements BpmExtPersistence {

    @Autowired
    private BpmDefExtRepository bpmDefExtRepository;


    /**
     * 根据流程定义id获取流程拓展信息
     *
     * @param procDefId 流程定义id
     * @return 流程拓展信息
     */
    public BpmDefExt getBpmDefExt(String procDefId) {
        return bpmDefExtRepository.findOneByProcDefId(procDefId);
    }


}
